package com.warren.biz.service.impl;

import com.warren.biz.entity.Consumer;
import com.warren.biz.mapper.ConsumerMapper;
import com.warren.biz.service.ConsumerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author warren
 * @since 2021-04-20
 */
@Service
public class ConsumerServiceImpl extends ServiceImpl<ConsumerMapper, Consumer> implements ConsumerService {

    @Override
    public Consumer add(Consumer consumer) {
        this.baseMapper.insert(consumer);
        return consumer;
    }
}
